from django.http import HttpResponse
# 1. 导入
import logging
# 2. 创建(获取)　日志实例
from django.shortcuts import render
from django.views import View

logger = logging.getLogger('django')


def log(request):

# 3. 记录日志
    logger.info('lalallalalla')
    logger.error('error')
    logger.debug('oooooooo')

    return HttpResponse('log')





class RegisterView(View):
    def get (self,request):
        return render(request,'register.html')